package cn.com.cifi.mars.constant;

/**
 * 任务类型 待办类型 code 
 * @author Administrator
 *
 */
public enum TodoTypeCodeEnum {
	
	PRICE_VALUE("1", "货值填报"), 
	SIGN_PLAN("2", "签约编制"),
	SUPPLY_CONFIRM("3", "供货确认"),
	EARLY_WARNING("4","预警提醒"),
	RETURN_PLAN("5","回款编制"),
	WARNING_SUPERVISE("6","督办预警"),
	;

	private String key;
	private String value;

	TodoTypeCodeEnum(String key, String value) {
			this.key = key;
			this.value = value;
		}

	public String getKey() {
		return key;
	}

	public String getValue() {
		return value;
	}
	
    public static String getValueByKey(String key){
        for(TodoTypeCodeEnum versionTypeEunm:TodoTypeCodeEnum.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }
}
